package com.itheima.principles.test;

public class Auto {
    private int num;
    private String color;
    private int weight;
    private float fast;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public float getFast() {
        return fast;
    }

    public void setFast(float fast) {
        this.fast = fast;
    }


    public void addFast(){
        System.out.println("加速");
    }


    public void lessen(){
        System.out.println("减速");
    }
}
